<?
include '../adphpgtk.php';

// Usando adWindow
//$janela = new adWindow('upaupa', 500, 300, Gtk::WIN_POS_CENTER);


// Usando AdPHPGtk

$phpgtk = new AdPHPGtk;
$janela = $phpgtk->newWindow('Testando', 400, 300, Gtk::WIN_POS_CENTER);
//$janela2 = $phpgtk->newWindow('Testando 22222', 400, 300);


$btadd = $janela->addButton('Botao OK');
$btadd->show();

function ok() {
	echo 'clicou ok';
  
  $janela3 = new adWindow('Testando 22222', 400, 300);
  $janela3->show();
}
$btadd->onClicked('ok');

$phpgtk->showWindows();
?>
